<template>
  <div >
   <!-- <x-header >登陆</x-header > -->
   <div class="text-font logotit">忘记密码</div>

    <div class="logo-input">
      <x-input title=""  placeholder="输入邮箱号" :min="2" :max="25" is-type="email">
        <i slot="label"  class="icon iconfont">&#xe616;</i>
      </x-input>
    </div>

    <div class="logo-input">
      <x-input title=""  placeholder="请输入密码" :show-clear="false" :type="yj?'text':'password'">
        <i slot="label"  class="icons iconfont">&#xe68f;</i>
        <i slot="right"  class="icons iconfont" @click="yj=!yj" v-html="yj?'&#xe68b;':'&#xe600;'"></i>
      </x-input>
    </div>
    <!-- <check-icon :value.sync="demo1">({{ demo1 }})</check-icon> -->
<!--     <router-link to="/logo/resgi">
      <div class="wjpassword">忘记密码？</div>
    </router-link> -->

    <div class="submitbuttom">
    <!-- show-loading -->
        <x-button type="primary"  @click.native="cssf">确定</x-button>
    </div>

    <div class="fixedfooter">
    没有账号？ <router-link to="registered">
        <span class="cj">创建一个!</span>
    </router-link>
    </div>

  </div>
</template>

<script>
import { XInput ,XButton,CheckIcon} from 'vux'
export default {
  components: {
    XInput,
    XButton,
    CheckIcon
  },
    data () {
    return {
      yj: false,
      // submit001: 'click me',
      // disable001: false
    }
  },
  methods:{
    submit(){
      var self=this;
      this.loadin=true;
      lzd_ajax.ajaxpost(this,config.logo,{
            usertype:1,
            username:this.username,
            password:this.password
          },function(data){
            lzd_localStorage.localStorage(2,data);
            self.loadin=false;
            self.$router.push('/home');
          },function(){
            alert("请检查网络")
      })
    }
  },
  mounted () {
    this.$nextTick(function() {
     setTimeout(()=>{this.$store.state.isload=false},100)
      // alert("f")
    // window.
    })
  }
}
</script>
<style lang="scss">

</style>
